package com.ct.code.tools;

import java.io.File;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;

import javax.crypto.spec.DESedeKeySpec;

public class Test {

	public static void main(String[] args) throws UnsupportedEncodingException {
		String separator = File.separator;
		if("\\".equals(separator)){
			separator = "\\\\";
		}
		System.out.println("com.ct.store".replaceAll("\\.", separator));
		
		System.out.println(" 200元 ".length());
		
		System.out.println(URLEncoder.encode("HmXbdfCKRJahecUPkFoB9mEHRUw0EWNn+K78ce7shkfOODyMgPCIBA==","utf-8"));
		//HmXbdfCKRJahecUPkFoB9mEHRUw0EWNn%2BK78ce7shkfOODyMgPCIBA%3D%3D
		String a = URLDecoder.decode("HmXbdfCKRJahecUPkFoB9mEHRUw0EWNn%2BK78ce7shkfOODyMgPCIBA%3D%3D", "utf-8");
		
	}
}
